{"ast":null,"code":"import apiClient from \"../http\";\nimport { signIn, signUp, forgotPassword } from \"../routes\";\nexport default class AuthService {\n  static async signIn(signInRequest) {\n    return apiClient.post(signIn(), signInRequest);\n  }\n  static async signUp(signUpRequest) {\n    return apiClient.post(signUp(), signUpRequest);\n  }\n  static async forgotPassword(forgotPasswordRequest) {\n    return apiClient.post(forgotPassword(), forgotPasswordRequest);\n  }\n}","map":{"version":3,"names":["apiClient","signIn","signUp","forgotPassword","AuthService","signInRequest","post","signUpRequest","forgotPasswordRequest"],"sources":["/data/messenger.client/src/services/AuthService.ts"],"sourcesContent":["import SignInRequest from \"../models/request/SignInRequest\";\nimport SignUpRequest from \"../models/request/SignUpRequest\";\nimport ForgotPasswordRequest from \"../models/request/ForgotPasswordRequest\";\nimport ForgotPasswordResponse from \"../models/response/ForgotPasswordResponse\";\nimport apiClient from \"../http\";\nimport {AxiosResponse} from 'axios';\nimport {AuthResponse} from \"../models/response/AuthResponse\";\nimport {signIn, signUp, forgotPassword} from \"../routes\"\n\nexport default class AuthService {\n    public static async signIn(signInRequest: SignInRequest): Promise<AxiosResponse<AuthResponse>> {\n        return apiClient.post<AuthResponse>(signIn(), signInRequest);\n    }\n\n    public static async signUp(signUpRequest: SignUpRequest): Promise<AxiosResponse<AuthResponse>> {\n        return apiClient.post<AuthResponse>(signUp(), signUpRequest);\n    }\n\n    public static async forgotPassword(forgotPasswordRequest: ForgotPasswordRequest): Promise<AxiosResponse<ForgotPasswordResponse>> {\n        return apiClient.post<ForgotPasswordResponse>(forgotPassword(), forgotPasswordRequest);\n    }\n}"],"mappings":"AAIA,OAAOA,SAAS,MAAM,SAAS;AAG/B,SAAQC,MAAM,EAAEC,MAAM,EAAEC,cAAc,QAAO,WAAW;AAExD,eAAe,MAAMC,WAAW,CAAC;EAC7B,aAAoBH,MAAM,CAACI,aAA4B,EAAwC;IAC3F,OAAOL,SAAS,CAACM,IAAI,CAAeL,MAAM,EAAE,EAAEI,aAAa,CAAC;EAChE;EAEA,aAAoBH,MAAM,CAACK,aAA4B,EAAwC;IAC3F,OAAOP,SAAS,CAACM,IAAI,CAAeJ,MAAM,EAAE,EAAEK,aAAa,CAAC;EAChE;EAEA,aAAoBJ,cAAc,CAACK,qBAA4C,EAAkD;IAC7H,OAAOR,SAAS,CAACM,IAAI,CAAyBH,cAAc,EAAE,EAAEK,qBAAqB,CAAC;EAC1F;AACJ"},"metadata":{},"sourceType":"module"}